import { App, Plugin } from "vue";

import Reflect from "@/utils/reflect";

/** 反射插件 */
export default <Plugin<any[]>>{
  install: function (app: App) {
    app.mixin({
      destroyed() {
        Reflect.clear(this);
      }
    });
  }
}
